package com.foreknow.service;

import com.foreknow.model.Abc;

import java.util.List;

public interface AbcService {
    /**
     * 单个查询
     * @param id
     * @param name
     * @return
     */
    public Abc isLogin(int id,String name);
    /**
     * 查询所有
     * @return
     */
    public List<Object> query();

    /**
     * 修改
     * @param abc
     * @return
     */
    public boolean update (Abc abc);

    /**
     * 添加
     * @param abc
     * @return
     */
    public boolean add(Abc abc);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public boolean delete(int id);
}
